import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listRoom(query) {
  return request({
    url: '/system/room/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getRoom(id) {
  return request({
    url: '/system/room/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addRoom(data) {
  return request({
    url: '/system/room',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateRoom(data) {
  return request({
    url: '/system/room',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delRoom(id) {
  return request({
    url: '/system/room/' + id,
    method: 'delete'
  })
}

export function listRoomName(type) {
  return request({
    url: '/system/room/ListNames/'+ type,
    method: 'get',
  })
}


export function listRoomInfo(name) {
  return request({
    url: '/system/room/byName/'+ name,
    method: 'get',
  })
}
